<template>
  <div class="dashboard-container">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <div class="echartsPicture">
      <el-row class="chart-card" type="flex" justify="space-between">
        <el-col :span="12" style="padding-right:20px">
          <div class="grid-content bg-purple">
            <el-card class="item right-item barChart">
              <barChart />
            </el-card>
          </div>
        </el-col>
        <el-col :span="12">
          <div class="grid-content bg-purple-light">
            <el-card class="item left-item pieChart">
              <pieChart />
            </el-card>
          </div>
        </el-col>
      </el-row>
    </div>

  </div>
</template>

<script>
// import { mapGetters } from 'vuex'
import barChart from './components/barChart.vue'
import pieChart from './components/pieChart.vue'

export default {
  name: 'Dashboard',
  components: {
    barChart,
    pieChart
  }
  // computed: {
  //   ...mapGetters([
  //     'name'
  //   ])
  // }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }

}
</style>
